<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <!-- <div class="box">
        <h1>你确定删除吗?</h1>
        <div class="btnArr">
            <button class="btnA">确定</button>
            <button class="btnB">取消</button>
        </div>
    </div> -->
    <script src="./js/index.js"></script>
    <script>
        new Dialog({
            title: '你确定删除吗?',
            btns: ['确定', '取消'],
            cd0() {
                alert('删除完成')
                document.body.removeChild(this.parent);
            },
            cd1() {
                alert('删除取消')
            }
        })
    </script>
</body>

</html>